package com.test.controller;

import com.test.feign.HiFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HiController {
    @Autowired
    private HiFeign hiFeign;

    @GetMapping("/hi")
    public String hi(String name){
        return hiFeign.hi(name);
    }
}
